package com.example.demo.entity.Kitting;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class KittingWp {
    private String goodsCode;         // WA_produce_bill_detail_wp.goods_code
    private Integer wpNo;              // WA_produce_bill_detail_wp.wp_no
    private Integer id;                  // WA_produce_bill_detail_wp.id
    private String billNo;            // WA_produce_bill_detail_wp.bill_no
    private Integer wpId;                // WA_produce_bill_detail_wp.wp_id
    private String wpCode;            // WA_produce_bill_detail_wp.wp_code
    private BigDecimal planQty;       // WA_produce_bill_detail_wp.plan_qty
    private BigDecimal completeQty;   // WA_produce_bill_detail_wp.complete_qty
    private BigDecimal goodQty;       // WA_produce_bill_detail_wp.good_qty
    private BigDecimal badQty;        // WA_produce_bill_detail_wp.bad_qty
    private BigDecimal setWorkQty;    // WA_produce_bill_detail_wp.set_work_qty
    private BigDecimal inProcessQty;  // ISNULL(p_wp_batch_stock.in_process_qty, 0)
    private String wpName;            // (SELECT wp_name FROM b_working_procedure WHERE wp_code = WA_produce_bill_detail_wp.wp_code)
    private String goodsName;         // b_goods.goods_name
    private String designNumber;      // b_goods.design_number
    private BigDecimal notSetWorkQty; // ISNULL((CASE ... END), 0)

    public KittingWp(String goodsCode, Integer wpNo, Integer id, String billNo, Integer wpId, String wpCode, BigDecimal planQty, BigDecimal completeQty, BigDecimal goodQty, BigDecimal badQty, BigDecimal setWorkQty, BigDecimal inProcessQty, String wpName, String goodsName, String designNumber, BigDecimal notSetWorkQty) {
        this.goodsCode = goodsCode;
        this.wpNo = wpNo;
        this.id = id;
        this.billNo = billNo;
        this.wpId = wpId;
        this.wpCode = wpCode;
        this.planQty = planQty;
        this.completeQty = completeQty;
        this.goodQty = goodQty;
        this.badQty = badQty;
        this.setWorkQty = setWorkQty;
        this.inProcessQty = inProcessQty;
        this.wpName = wpName;
        this.goodsName = goodsName;
        this.designNumber = designNumber;
        this.notSetWorkQty = notSetWorkQty;
    }
}
